Image processing apparatus, image processing method, and storage medium

ABSTRACT

An apparatus includes an acquisition unit configured to acquire at least one image group including at least one image; a creating unit configured to create a layout candidate by laying out images included in an image group that has been acquired by the acquisition unit; an evaluating unit configured to evaluate the layout candidate created by the creating unit, based on individual evaluation of each of the images in accordance with a feature of a subject in the images that have been laid out in layouts; and an output unit configured to output the layout candidate created by the creating unit, at a predetermined output size. The feature of the subject in the images includes a size of the subject in the image identified by an output size of the layout candidate output by the output unit.

BACKGROUND OF THE INVENTION

Field of the Invention

The present disclosure generally relates to image processing and, moreparticularly, to an image processing apparatus, an image processingmethod, and a storage medium.

Description of the Related Art

Data of a massive number of digital pictures shot by users using digitalstill cameras (hereinafter also “DSC”), multifunctional cellular phoneshaving camera functions, and so forth, and saved in personal computers(PCs) which users own, or storage of storage services provided on theInternet.

There has been the need for a user, desiring to find where a desiredimage has been saved in the massive number of digital pictures, tobrowse through a vast number of images. This has been detrimental withregard to the usability of browsing and searching for images.

Now, Japanese Patent Laid-Open No. 2009-245071 proposes a method tocreate one or multiple layout candidates by changing past layoutparameters stored in a layout table.

When printing a layout result, printing the same layout on an A3-sizesheet and an A6-size sheet will give the user different impressions ofthe printed product, since the printed size of the subject differs.

However, layout evaluation is performed in Japanese Patent Laid-Open No.2009-245071 without taking printing size into consideration whatsoever,and accordingly there has been a problem in that optimal layout may notbe obtained depending on the paper size.

SUMMARY OF THE INVENTION

It has been found desirable to provide an apparatus, method, and storagemedium enabling a suitable layout to be obtained in accordance withoutput size.

According to an aspect of the present disclosure, an apparatus includesan acquisition unit configured to acquire at least one image groupincluding at least one image; a creating unit configured to create alayout candidate by laying out images included in the image group thathas been acquired by the acquisition unit; an evaluating unit configuredto evaluate the layout candidate created by the creating unit, based onindividual evaluation of each of the images in accordance with a featureof a subject in the images that have been laid out in layouts; and anoutput unit configured to output the layout candidate created by thecreating unit, at a predetermined output size. The feature of thesubject in the images include a size of the subject in the imageidentified by an output size of the layout candidate output by theoutput unit.

Further features of the present disclosure will become apparent from thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a hardware configuration diagram of an image processingapparatus according to a first embodiment.

FIG. 2 is a software block diagram according to the first embodiment.

FIG. 3 is a flowchart illustrating image analysis processing accordingto the first embodiment.

FIG. 4 is a flowchart illustrating image analysis processing accordingto the first embodiment.

FIG. 5 is a flowchart illustrating person group generating processingaccording to the first embodiment.

FIG. 6 is a flowchart illustrating automatic layout proposal processingaccording to the first embodiment.

FIG. 7 is a diagram illustrating a display example of a person groupaccording to the first embodiment.

FIGS. 8A and 8B are diagrams illustrating display examples of imagegroups according to the first embodiment.

FIG. 9 is a diagram illustrating an example of a format for saving imageanalysis results.

FIGS. 10A and 10B are diagrams illustrating an example of a userinterface (UI) for manually inputting ratings, and an example of a UIfor manually inputting event information.

FIG. 11 is a diagram illustrating an example of a UI for manuallyinputting person attribute information.

FIG. 12 is a diagram illustrating an example of a format for savingperson attribute information.

FIG. 13 is a diagram illustrating an example of a layout template.

FIG. 14 is a diagram illustrating an example of a format for saving thelayout template in FIG. 13.

FIG. 15 is a diagram illustrating an example of a layout template.

FIG. 16 is a diagram illustrating an example of a format for saving thelayout template in FIG. 15.

FIG. 17 is a flowchart illustrating automatic layout generatingprocessing according to the first embodiment.

FIG. 18 is a flowchart illustrating unnecessary image filteringprocessing according to the first embodiment.

FIGS. 19A through 19C are explanatory diagrams; FIG. 19A regardingautomatic trimming processing, FIG. 19B regarding a method to calculatebrightness suitability, and FIG. 19C regarding a method to calculatesaturation suitability.

FIG. 20 is an explanatory diagram regarding trimming omissiondetermination processing.

FIG. 21 is a diagram illustrating a display example of automatic layoutgenerating results according to the first embodiment.

FIG. 22 is a diagram illustrating an example of holding a decided themeand main character information.

FIG. 23 is a diagram illustrating an example of holding a decided themeand main character information.

FIG. 24 is a diagram illustrating an example of holding generated layoutinformation.

FIG. 25 is an example of a flowchart illustrating processing tocalculate evaluation values for the images.

FIG. 26 is another example of a flowchart illustrating processing tocalculate evaluation values for the images.

DESCRIPTION OF THE EMBODIMENTS

Various exemplary embodiments, features, and aspects of the disclosurewill be described in detail below with reference to the drawings.

First Embodiment

A first embodiment of the present disclosure will be described regardingautomatically generating a layout output product using an input imagegroup. It should be noted that the following description is but anexemplary illustration by way of an embodiment, and that the presentdisclosure is by no way restricted to the following embodiment.

FIG. 1 is a block diagram illustrating a hardware configuration exampleof an image processing apparatus according to the first embodiment. Animage processing apparatus 115 includes a central processing unit (CPU)100, read-only memory (ROM) 101, random access memory (RAM) 102, asecondary storage device 103, a display device 104, an input device 105,an internal imaging device 106, an interface 107, an interface 108, anda wireless local area network (LAN) adapter 109. These components aremutually connected by a control bus/data bus 110. The wireless LANadapter 109 is connected to a wireless LAN which exists at the locationwhere the image processing apparatus 115 is installed. As used herein,the term “unit” generally refers to any combination of software,firmware, hardware, or other component that is used to effectuate apurpose.

The image processing apparatus 115 is a computer, for example. The CPU100 executes information processing which will be described in the firstembodiment, following programs. The ROM 101 stores programs such as anapplication which will be described below, which are executed by the CPU100. The RAM 102 serves as memory to temporarily store various types ofinformation when the CPU 100 is executing programs. The secondarystorage device 103 is a storage medium which saves databases or the likein which are stored image files and image analysis results. A hard diskis one example of the secondary storage device 103. The display device104 is a display monitor for example, which provides processing resultsof the first embodiment, a user interface (UI) described below, and soforth, to the user. The display device 104 may have touch panelfunctions. The input device 105 is a mouse, keyboard, or the like, forthe user to input instructions such as processing for image correction,or the like.

Images that have been imaged by the internal imaging device 106 aresubjected to predetermined image processing, and thereafter stored inthe secondary storage device 103. The image processing apparatus 115 canalso read in image data from an external imaging device 111 connectedvia an interface 108. The wireless LAN is further connected to theInternet 113 via a modem/router (not shown in the drawings), and thusthe image processing apparatus 115 can acquire image data from anexternal server 114 connected to the Internet 113.

A printer 112 which outputs images and the like is connected to theimage processing apparatus 115 via an interface 107. The printer 112 isfurther connected to the Internet 113, and can exchange print data withthe image processing apparatus 115 either via the interface 107 or overthe Internet via the wireless LAN and wireless LAN adapter 109.

FIG. 2 is a block diagram illustrating the configuration of software,such as the aforementioned application and so forth, according to thepresent embodiment.

Image data acquired by the hardware is normally compressed according toa compression format such as Joint Photography Expert Group (JPEG) orthe like. Accordingly, an image codec module 200 decompresses the imagedata according to the compression format by which the image data wascompressed, and converts the image data into RGB point-sequential bitmapformat image data. The converted bitmap data is transmitted to adisplay/UI control module 201, and is displayed on the display device104 such as a display monitor or the like.

The bitmap data is further input to an image sensing module 203, andthere is subjected to various types of image analysis processing,detailed description of which will be given later. Various types ofattribute information of the image obtained in this analysis processingare saved in a predetermined format in the above-described secondarystorage device 103, by a database module 202. Hereinafter, the terms“image analysis processing” and “sensing processing” will be usedinterchangeably.

A scenario generating module 204 generates layout conditions to beautomatically generated, in accordance with various conditions which theuser has input. A layout generating module 205 performs processing toautomatically generate a layout following the scenario which has beengenerated.

The generated layout is used to generate display bitmap data at arendering module 206. The bitmap data is sent to the display/UI controlmodule 201, and the results are displayed on the display device 104,which is a display monitor or the like. On the other hand, the renderingresults are further sent to a print data generating module 207, thereconverted into print command data, and sent to a printer.

FIGS. 3 through 6 are basic image processing flowcharts of theapplication according to the present embodiment. More specifically,FIGS. 3 and 4 illustrate a flow including processing performed beforeand after the processing performed at the image sensing module 203,where multiple image data groups including one or more images areacquired, analysis processing is performed on each image, and theresults are stored in a database. FIG. 5 illustrates a flow ofprocessing to group face information considered to be the same person,based on detected face position information. FIG. 6 illustrates a flowof processing to decide a scenario for layout creation based on imageanalysis information and various types of information which the user hasinput, and to automatically generate a layout based on the scenario.

In S301 in FIG. 3, one or more image data groups including one or moreimages are acquired. Examples of the way in which the image data groupis acquired include the user connecting to the image processingapparatus 115 an imaging device or memory card storing images which havebeen shot, so that the images are read in. Other examples includeacquiring an image data group of images which have been shot by aninternal imaging device and saved in the secondary storage device 103,and acquiring an image data group from a location other than the imageprocessing apparatus 115, such as from an external server 114 on theInternet, for example, via wireless LAN or the like.

Upon acquiring the image data group, a thumbnail group thereof isdisplayed on the UI as illustrated in FIGS. 8A and 8B. FIG. 8Aillustrates a UI 801 where image thumbnails 802 are displayed inincrements of folders where the images are stored in the secondarystorage device 103. FIG. 8B illustrates an arrangement where image datais managed by date in a UI 901 formed like a calendar. Clocking on adate portion 902 brings up a thumbnail list of images taken on thatdate, such as illustrated in FIG. 8A.

Next, the images are decoded in S302. More specifically, an applicationsearches for images which have been newly saved and not subjected tosensing processing yet, and the extracted images are converted fromcompressed data into bitmap data by the image codec module 200.

Next, in S303 the bitmap data is subjected to various types of sensingprocessing. The term sensing processing as used here includes thevarious types of processing illustrated in Table 1. Examples of sensingprocessing in the present embodiment that are given here are facedetection, feature amount analysis, and scene analysis. Data typeresults such as illustrated in Table 1 are calculated for each.

TABLE 1 Example of Attribute Information Obtained as Result of ImageAnalysis General sensing Detailed sensing Data classificationclassification type Value Basic feature Average luminance int 0-255amount of Average saturation int 0-255 image Average hue int 0-359 Facedetection Number of faces int 0-MAXFACE Coordinate position int*80-Width or Height Average Y in face region int 0-255 Average Cb in faceregion int −128-127   Average Cr in face region int −128-127   Sceneanalysis Scene results char Landscape Nightscape Portrait UnderexposureOthers

Each sensing processing will be described. The overall average luminanceand average saturation, which are basic feature amounts of the image,can be obtained by known methods, so detailed description thereof willbe omitted. The average luminance for each pixel in the image can beobtained by converting (conversion expression omitted from descriptionhere) RGB components into known luminance/color-difference components(e.g., YCbCr) components, and calculating the average value of the Ycomponent. The average saturation can be obtained by calculating S inthe following Expression for each pixel, and then calculating theaverage of all S's.S=√{square root over (Cb ² +Cr ²)}  (1)

The average hue (AveH) in the image is a feature amount to evaluate theshade of color of the image. The hue of each pixel can be calculatedusing a known hue intensity saturation (HIS) conversion expression, andAveH can be obtained by averaging the obtained values of the entireimage. These feature amounts may be calculated for the entire image asdescribed above, or the image may be divided in to regions ofpredetermined sizes and the feature amounts calculated for each region.

Next, person face detection processing will be described. Known methodscan be used as a person face detection technique employed in the presentembodiment.

Japanese Patent Laid-Open No. 2002-183731 describes a method where eyeregions are detected from an input image, and around the eye regions aretaken as a face candidate region. The luminance gradient and weight ofluminance gradient for each pixel are calculated with regard to thecandidate region, and these values are compared with the gradient of anideal face reference image, and gradient weight thereof, that have beenset beforehand. If the average angle between the gradients is notgreater than a predetermined threshold value, the input image isdetermined to include a face region.

Japanese Patent Laid-Open No. 2003-30667 describes a method where a skincolor region is first detected from the image, and the position of eyescan be detected in this region by detecting pixels having the color ofthe human iris.

Japanese Patent Laid-Open No. 8-63597 describes a method where a degreeof matching is calculated between multiple templates having shapes offaces, and an image. The template of which the degree of matching is thehighest is selected, and if the highest degree of matching is notsmaller than a predetermined threshold value, the region within theselected template is set as a face candidate region. The position of theeyes can be detected using the same template.

Further, Japanese Patent Laid-Open No. 2000-105829 describes a methodwhere first, a nose image pattern is used as a template, and a positionin the entire image or in a region specified within the image isscanned, and a position which matches the template best is output as anose position. Next, the region above the nose position in the image isconsidered to be the region where eyes exist, so this eye-existingregion is scanned using an eye image pattern as a template and thedegree of matching is calculated. An eye-existing candidate positionset, which is a set of images in which the degree of matching is greaterthan a certain threshold value, is thus obtained. Continuous regionsincluded in this eye-existing candidate position set are divided asclusters, and the distance between each cluster and the nose position iscalculated. The cluster regarding which the distance is the shortest isdetermined to be the eye position, whereby organ position detection canbe realized.

Other methods to detect faces of persons include the methods to detectfaces and organ positions such as described in Japanese Patent Laid-OpenNos. 8-77334, 2001-216515, 5-197793, 11-53525, 2000-132688, 2000-235648,and 11-250267. The person face detection processing method is notrestricted in particular, and the method described in Japanese PatentNo. 2541688 may be employed.

Person face detection face processing enables the number of faces andthe coordinate positions of each face to be obtained for each inputimage. Finding the face coordinate position in the image enables thefeature amount of the face region to be analyzed. For example, obtainingthe average YCbCr value of the pixel values included in the face region,for each face region, allows the average luminance and average colordifference to be obtained for the face regions.

Also, scene analysis processing can be performed using feature amountsof images. This scene analysis processing can be carried out by methodsdisclosed in Japanese Patent Laid-Open Nos. 2010-251999 and 2010-273144,for example. Scene analysis processing enables IDs to be obtained whichdistinguish photography scenes, such as Landscape, Nightscape, Portrait,Underexposure, and Others. While sensing information is acquired by theabove-described sensing processing in the present embodiment, othersensing information may be utilized as well.

The sensing information thus acquired is saved in the database module202. The sensing information may be described in a general-purposeformat such as eXtensible Markup Language (XML) for example, such asillustrated in FIG. 9, and stored in the database module 202 in thisformat. FIG. 9 illustrates an example of describing attributeinformation for each image divided into three categories.

The first is the Baseinfo tag. This is a tag to store information addedto an image file acquired beforehand, such as image size and photographydate/time information. This tag includes an identifier (ID) for eachimage, the location where the image file is stored, image size,photography date/time, and so forth.

The second is the SensInfo tag. This is a tag to store the results ofthe above-described image analysis processing. Stored here are theaverage luminance, average saturation, average hue, and scene analysisresults, for the entire image. Also stored here are face positions ofpersons in the image, and information relating to face color.

The third is the UserInfo tag. This is a tag to store information whichthe user has input for each image. Details of this tag will be describedlater.

The method of storing image attribute information in a database is notrestricted to the above-described method. Any other known format may beused.

In S305 in FIG. 3, determination is made whether or not the imageprocessed in S302 and S303 above is the last image in the image datagroup. If the last image, the flow advances to S306, and otherwise,returns to S302.

In S306, processing to generate a group for each person is performedusing the face position information detected in S303. Grouping personfaces beforehand enables efficient tagging of persons by the user later.

Forming person groups here is executed by the processing flowillustrated in FIG. 5, using a known personal recognition method. Suchpersonal recognition processing is executed by extracting featureamounts of facial organs, such as the eyes and the mouth, and comparingthe similarity in the relationship therebetween. An example of personalrecognition processing is disclosed in Japanese Patent No. 3469031, sodetailed description will be omitted here.

FIG. 5 is a basic flowchart of the person group generating processing inS306. First, in S501, images saved in the secondary storage device 103are sequentially read out and decoded. In S502, the database module 202is accessed so as to acquire the number of faces included in the imagebeing processed and the positional information regarding the faces.Next, in S504, a normalized face image is generated, to perform personalrecognition processing.

The term “normalized face image” here refers to a face image obtained bycropping out faces which exist in the image, and performing conversionon these faces, which have various sizes, orientations, and resolutions,so that the sizes and orientations are all the same. The positions oforgans such as the eyes and mouth are important to perform personalrecognition, so the size of normalized face images preferably is suchthat these organs can be accurately recognized. Generating such anormalized face image does away with the need to handle faces of variousresolutions in the feature amount detecting processing.

Next, in S505, face feature amounts are calculated from the normalizedface images. Face feature amounts are features including the positionand size of organs such as the eyes, mouth, and nose, and furtherincluding facial outline and so forth.

Further, in S506, it is determined whether or not the feature amounts offaces in the image currently being processed have similarity with facefeature amounts in a database in which are stored feature amounts foreach person identifier (dictionary ID) beforehand (hereinafter referredto as “face dictionary”). This similarity is calculated by comparingfeature amounts managed within the dictionary ID, and facial amountsnewly input. The feature amounts used at this time is the position oforgans such as the eyes, nose, and mouth, the distance between theorgans, and so forth. The greater the similarity between the featureamounts is, the higher the degree of similarity is, and less similaritythere is between the feature amounts, the lower the degree of similarityis. The degree of similarity may assume a value between 0 and 100.Whether similar or not is determined by comparing the calculated degreeof similarity with a preset threshold value, and determining that theface is of the same person as that of the dictionary ID in a case wherethe degree of similarity exceeds the threshold value. This thresholdvalue may be uniform for all dictionary IDs, or may be set differentlyfor each dictionary ID.

In a case where the determination in S506 is Yes, the flow advances toS509, where the feature amounts of this face are added to the dictionaryID as the same person.

In a case where the determination in S506 is No, the flow advances toS508, where a new dictionary ID is issued and added to the facedictionary, since the face currently being evaluated is determined to bea person different from any person registered in the face dictionary sofar. The processing of S502 through S509 is applied to all face regionsdetected from the input image group, thus groping the persons appearingin that image.

The results of the person group generating processing are describedusing ID tags for each face as illustrated in the XML format in FIG. 12,and saved in the above-described database.

While description has been made above regarding an arrangement whereperson group generating processing is executed after sensing processinghas been completed for all images, as illustrated in FIG. 3, andarrangement may be made such as illustrated in FIG. 4 for example, wheresensing processing is performed on one image in S403, following whichgrouping processing is performed in S405 using the face detectionposition information. Either way, the same results can be generated.

The person groups obtained from this person group generating processingare displayed in a UI 701 such as illustrated in FIG. 7. In FIG. 7,reference numeral 702 denotes a representative face image of a persongroup, and reference numeral 703 denotes a region to the side thereofwhere the name of this person group is displayed. Immediately after theautomatic person grouping processing ends, the person names aredisplayed as “No name 1”, “No name 2”, and so forth, as illustrated inFIG. 7. These person names will hereinafter be referred to as “personID”. Reference numeral 704 denotes the multiple face images included inthe person group. The UI 701 in FIG. 7 is capable of receiving input ofperson names upon having specified a region 703 for “No name X”, inputof information for each person, such as birthday, relation, and soforth.

The above-described sensing processing may be performed using backgroundtasking of the operating system. In this case, the user can continue thesensing processing of the image group even if performing a differenttask on the computer.

Various types of attribute information relating to the image can bemanually input by the user in the present embodiment. Table 2illustrates examples of such attribute information (hereinafter“manually registered information”) in list form. There are two generalclassifications in this manually registered information, one of which isvery general and relates to settings for the overall image, and theother is information to be set for individual persons subjected to theabove-described group processing.

TABLE 2 Example of Attribute Information which User can Manually InputClassification Information Data type Value Image Rating int 0-5 Eventchar “travel” “graduation” “Wedding” Person Name char “NAME” Birthdaychar YYYYMMDD Relationship char “family”

One attribute information set for each image is a rating manually set bythe user, to indicate how high he/she rates the image, on a scale ofseveral levels. For example, FIG. 10A illustrates a UI 1301 where theuser can select a desired thumbnail image 1302 with a mouse pointer1303, and right-click to bring up a dialog box from which the user caninput a rating. The arrangement illustrated in FIG. 10A involvesselecting a number of stars in accordance with the rating. In thepresent embodiment, the higher the rating is, the more stars the userselects.

Alternatively, the rating may be set automatically, rather than the usersetting the rating manually. For example, an arrangement may be madewhere the user clicks a desired image file in the state of the imagethumbnail list display in FIG. 8A to transition to a single-imagedisplay screen, and the rating is set according to the number of timesthat this transition has been made. Determination may be made that thegreater the number of times counted which the user has viewed the image,the more the user likes this image, and accordingly the higher therating is, for example.

As another example, the number of times of printout may be set for therating. For example, if a user prints an image, it may be assumed thatthe user is printing that image because he/she likes that image, so therating is set higher. Determination may be made that the greater thecount of prints, the more the user likes this image, and accordingly thehigher the rating is, for example.

As described above, the rating may be set manually be the user, or maybe automatically set depending on the number of times of views or thenumber of prints. Information of these settings and counts areindividually stored in the UserInfo tag of the database module 202, inthe XML format illustrated in FIG. 9. For example, the rating is storedin a FavoriteRate tag, the viewing count is stored in a ViewingTimestag, and the print count is stored in a PrintingTimes tag.

An example of information to be set for each image is event information,examples of which are “travel” indicating a family vacation trip,“graduation”, “wedding”, and so on.

An event may be specified by specifying a desired date on the calendarby the mouse pointer 1402 such as illustrated in FIG. 10B, and inputtingthe name of the event for that date. The specified event name will beincluded in the XML format illustrated in FIG. 9, as a part of theattribute information of that image. The format in FIG. 9 associates theevent name and the image using an Event tag in the UserInfo tag. Notethat hereinafter, the term “associate” means to correlate.

Next, person attribute information will be described. FIG. 11illustrates an UI 1501 for inputting person attribute information.Reference numeral 1502 in FIG. 11 denotes a representative face image ofa certain person (“father” in this case). Reference numeral 1503 denotesa display region for a person name (person ID) of the certain person.Reference numeral 1504 denotes images (thumbnails) detected from otherimages, regarding which determination has been made in S506 that theface feature amounts are similar. Thus, a list of images 1504 regardingwhich determination has been made in S506 that the face feature amountsare similar, is displayed beneath the person ID 1503 in FIG. 11.

Immediately after the sensing processing has ended, there is no nameinput to each person group as illustrated in FIG. 7, but any person namecan be input by instructing the “No name” portion 702 using a mousepointer.

The birthday of each person, and the relationship as to the useroperating the application, can be set as attribute information for eachperson. Clicking on the representative face 1502 of the person in FIG.11 enables the birthday of the person clicked on to be input at a firstinput portion 1505. Relationship information as to the person clicked oncan be input at a second input portion 1506.

This input person attribute information is managed in the databasemodule 202 separately from the image attribute information, in an XMLformat such as illustrated in FIG. 12, unlike the attribute informationcorrelated with the images in the previous description.

Various layout templates prepared beforehand are used in the layoutgenerating processing according to the present embodiment. Examples oflayout templates are illustrated in FIGS. 13 and 15, where multipleimage placement frames (hereinafter used interchangeably with the term“slots”) 1702, 1902, and 1903 are provided in the size of a sheet forlayout.

A great number of such templates are prepared; these may be saved in thesecondary storage device 103 at the point that the software for carryingout the present embodiment is installed in the image processingapparatus 115. Another method is to obtain a desired template group froman external server 114 on the Internet, via the interface 107 or thewireless LAN adapter 109.

These templates are described in a highly versatile structured language,such as XML, in the same way as that used in storing the sensing resultsas described above. FIGS. 14 and 16 illustrate examples of XML data.

In these examples, first, basic information of the layout page isdescribed at the BASIC tag. Conceivable examples of basic informationinclude layout theme, page size, resolution (dpi) of the page, and soforth. In the initial state of the templates in these examples, a Themetag, which is the layout theme, is blank. The default settings for thebasic information are page size of A4 and resolution of 300 dpi.

ImageSlot tags describe information of the image placement framesdescribed above. An ImageSlot tag includes the two tags of ID tag andPOSITION tag, which describe the ID and position of the image placementframe thereof. This position information is defined on an X-Y coordinatesystem of which the upper left corner is the origin, for example, asillustrated in FIGS. 14 and 16.

The ImageSlot tags are also used to set, for each slot, the shape of theslot and a recommended person group name to be placed in the slot. Thetemplate illustrated in FIG. 13 has a rectangular shape for all slots,as indicated by “rectangle” in the Shape tag in FIG. 14, and the persongroup name is recommended to be “MainGroup” by the PersonGroup tag.

The template illustrated in FIG. 15 has a rectangular shape for the slot1902 situated at the middle, of which ID=0, as indicated by “rectangle”in the first Shape tag in FIG. 16, and the person group name isrecommended to be “SubGroup”. The slots 1903 of which ID=1 and ID=2 haveoval shapes, as indicated by “ellipse” in the second and third Shapetags in FIG. 16, and the person group name is recommended to be“MainGroup”. Many such templates are held in the present embodiment.

The application according to the present embodiment is arranged to beable to perform analysis processing on input image groups, automaticallygroup persons, and display on a UI. The user can view the results, inputattribute information for each person group such as name and birthday,and set ratings for each of the images. Moreover, a great number oflayout templates, classified by theme, can be held.

The application according the present embodiment which satisfies theabove-described conditions performs processing to automatically generatea collage layout which the user might like, and presents this to theuser, at a certain timing (hereinafter referred to as “layout proposalprocessing”).

FIG. 6 illustrates a basic flowchart for performing layout proposalprocessing. First, in S601, a scenario for the layout proposalprocessing is decided. A scenario involves deciding the theme andtemplate of the layout to be proposed, setting of a person to beemphasized in the layout (main character), selection information if animage group to be used for generating a layout, and so forth. Scenariodeciding methods will now be described by exemplifying two scenarios.

For example, in one assumed case, settings have been made such thatlayout proposal processing is to be automatically performed two weeksbefore the birthday of each person, and a person “son” automaticallygrouped in FIG. 11 is close to his first birthday. In this case, thetheme “growth”, which is a growth record, is decided as the theme forthe layout to be proposed. Next, a template suitable for a growthrecord, such as illustrated in FIG. 15 is selected, and “growth” isdescribed in the XML Theme tag portion, as illustrated in FIG. 22. Next,“son” is set as the main character “MainGroup” to be emphasized in thelayout. Further, “son” and “father” are set as the “SubGroup” to besecondarily emphasized in the layout. Thereafter an image group to beused in the layout is selected. In the case of this example, a greatnumber of image groups including images including the person “son” isextracted from groups of images shot from the day on which the person“son” was born, up to the present, and compiled into a list. This is anexample of deciding a scenario for a growth record layout.

As a different example, in another assumed case, settings have been madesuch that in a case where certain event information has been registeredwithin one month, layout proposal processing is executed. Once it hasbeen determined from the event information registered in FIG. 10B thatthe user has gone on a family vacation, and there is a great number ofimages from that trip stored in the secondary storage device 103 forexample, the scenario generating module 204 decides a scenario forproposing a layout for the family vacation. In this case, “travel” isdecided as the theme for the layout to be proposed for the vacationtrip. Next, a template such as illustrated in FIG. 13 is selected, and“travel” is described in the XML Theme tag portion, as illustrated inFIG. 23. Next, “son”, “mother”, and “father” are set as the maincharacter “MainGroup” to be emphasized in the layout. Thus, XML featurescan be employed to set multiple persons as the “MainGroup”. Thereafter,an image group to be used in the layout is selected. In the case of thisexample, the database is referenced, and a great number of image groupsincluding images associated with the vacation event is extracted andcompiled into a list. This is an example of deciding a scenario for afamily vacation layout.

Next, automatic layout generating processing based on theabove-described scenario is executed in S602 in FIG. 6. FIG. 17illustrates a detailed processing flow of the layout generating module205. The processing steps in FIG. 17 will now be described in order.

Template information decided in the above-described scenario decidingprocessing, after the theme and person group information have been set,is acquired in S2101.

Next, in S2103 feature amounts for each image are acquired from thedatabase, based on the image list decided for the scenario as describedabove, and an image group attribute information list is generated. Theimage group attribute information list has a configuration where thereare many IMAGEINFO tags illustrated in FIG. 9 arrayed as there areimages in the image list.

Thus, image data itself is not directly handled in the automatic layoutgenerating processing according to the present embodiment; rather,attribute information saved in a database from having performed sensingprocessing for each image beforehand, is used. This avoids the need fora very large memory region to store the image group, which would benecessary if the image data itself were handled at the time ofperforming the layout generating processing. This realizes reduction inthe memory capacity needed for the layout generating processing.

Specifically, attribute information of the input image group is firstused in S2105 to perform filtering of unnecessary images from the inputimage group. The filtering processing is performed according to the flowillustrated in FIG. 18. First in S1601 in FIG. 18, determination is madefor each image, regarding whether or not the average luminance thereofis included between threshold values (ThY_Low and ThY_High). If thedetermination results are No, the flow advances to S1606 where the imagebeing handled (hereinafter “image of interest”) is removed from being alayout candidate.

In the same way, the average luminance and average color differencecomponents are determined for each face region included in the image ofinterest, regarding whether included between threshold values whichindicate a good skin color region, S1602 through S1604. Only in a casewhere all determinations of S1602 through S1604 yield Yes is an imageapplied to the subsequent layout generating processing. Specifically, inS1602, determination is made regarding whether or not an AveY of a faceregion where ID=N is included in a range of predetermined thresholds(ThfY_Low and ThfY_High). In S1603, determination is made regardingwhether or not an AveCb of a face region where ID=N is included in arange of predetermined thresholds (ThfCb_Low and ThfCb_High). In S1604,determination is made regarding whether or not an AveCr of a face regionwhere ID=N is included in a range of predetermined thresholds (ThfCr_Lowand ThfCr_High). In S1605, determination is made whether the last faceor not. If not the last face, the flow returns to S1602, and if the lastface, the processing ends.

This filtering processing is for removing images which clearly areunnecessary in the subsequent temporary layout creation processing, sothe threshold values are preferably set relatively loosely. For example,if the difference between ThY_High and ThY_Low in the determination ofoverall image luminance in S1601 is drastically small as compared to thedynamic range of the images, the number of images which yield a Yesdetermination will be that much smaller. This is avoided in thefiltering processing according to the present embodiment by setting thedifference between the two thresholds as wide as possible whileeliminating images which are clearly abnormal.

Next, a great number (L) of temporary layouts are generated in S2107 inFIG. 17, using the image group obtained for layout in the processingdescribed above. Generating of the temporary layouts is performed byrepeating processing of arbitrarily fitting the input images into theimage placement frames of the acquired template. At this time, theparameters of image selection, placement, and trimming, are randomlydecided, for example.

An example of a standard for selecting images involves deciding whichimages to select from the image group when there are N image placementframes in the layout. An example of a standard for placement involvesdeciding which placement frames the selected multiple images are to beplaced in. An example of a standard for trimming involves deciding atrimming ratio, which is how much to trim. The trimming ratio may berepresented in terms of 0 to 100%, and trimming is performed at apredetermined trimming ratio with the center of the image as areference, as illustrated in FIG. 19A. Reference numeral 2301 in FIG.19A denotes the entire image, and 2302 denotes the frame where trimminghas been performed at a trimming ratio of 50%.

As many temporary layouts as possible are generated based on the imageselection, placement, and trimming standards. The temporary layouts thathave been generated can be expressed as in the XML code illustrated inFIG. 24. The ID of the image selected for each slot is described in theImageID tag, and the trimming ratio is described in the TrimmingRatiotag.

Note that the number L of temporary layouts generated here is decided bythe processing amount of evaluation processing in a later-describedlayout evaluation step, and the capabilities of the image processingapparatus 115 performing the processing thereof. For example, severalhundreds of thousands of temporary layouts are preferably generated.

The processing amount of evaluation processing in the layout evaluationstep increases or decreases depending on how complex the layout templateto be created is. For example, the greater the number of slots to behandled within the template is, the greater the evaluation processingamount becomes, and the more complex the layout conditions instructedfor each slot are, the greater the evaluation processing amount becomes.Accordingly, the number L may be dynamically determined after havingestimated the complexity of the template to be generated beforehand.Setting the number L is this way enables the response at the time ofautomatic layout creating, and the quality of the layout results, to beoptimally controlled.

The generated layouts may be saved as files in the secondary storagedevice 103 in the XML format illustrated in FIG. 24 with IDs appended toeach, or may be stored in the RAM 102 using other data structures.

Qualitative evaluation of the great number of generated temporallylayouts is then performed in S2108 in FIG. 17. Specifically, the Ltemporary layouts which have been created are each subjected toevaluation, using predetermined layout evaluation amounts. Table 3illustrates an example of layout evaluation amounts in the presentembodiment. The layout evaluation amounts according to the presentembodiment can be primarily classified into three categories.

TABLE 3 Example of Layout Evaluation Values in Automatic LayoutImportance by theme Score (weighting W) Category Evaluation items rangegrowth travel . . . Evaluation of Suitability of brightness 0-100 0.51.0 individual Suitability of saturation 0-100 0.5 1.0 image Suitabilityas to 0-100 printing size Evaluation of Person match 0-100 1.0 0.5 imageand slot match Determination of 0-100 1.0 0.5 trimming omissionEvaluation of image similarity 0-100 0.5 1.0 balance in page Variationin shade of 0-100 0.5 1.0 color Variation in face size 0-100 0.5 1.0Other User preferences 0-100 0.8 0.8

The first is evaluation amounts of individual images. This involvesdetermining the brightness and saturation of the image, state of shakingor blurring or the like, suitability regarding the print size, and soforth, and grading by scores. An example of grading by scores accordingto the present embodiment will be described. For example, suitability ofbrightness is set such that the score value is 100 within apredetermined range for average luminance, and the score drops outsideof that predetermined range, as illustrated in FIG. 19B. Also,suitability of saturation is set such that the score value is 100 if thesaturation of the overall image is greater than a predeterminedsaturation value, and the score gradually drops if smaller than thepredetermined value, as illustrated in FIG. 19C. Suitability regardingthe printing size will be described later in detail.

The second is evaluation of suitability between images and slots.Examples of evaluation of suitability between images and slots includeperson match, and trimming omission determination regarding omission bytrimming. The person match represents the ratio of matching between theperson specified for a slot and the person in the image actually placedin this slot. For example, if “father” and “son” have been specified inthe PersonGroup specified in the XML code for a certain slot, and thereare two people in an image assigned to the slot, the person match scoreis 100 if both of these two persons are in the image. If only one of thetwo is in the image, the person match score is 50, and the person matchscore is 0 if neither is in the image. The match for the entire page isobtained by averaging the matches calculated for each slot. Trimmingomission of a trimming region 2702 is determined as follows, forexample. In a case where a position 2703 of a face in the image has beenidentified, a trimming omission score value is calculated on a scale of0 to 100, in accordance with the area of the face which has been omittedby the trimming. If the area omitted by trimming is 0, the score is 100,and conversely if the entire face region is missing, the score is 0, asillustrated in FIG. 20.

The third is evaluation of valance within the layout page. Examples ofevaluation values to evaluate balance include similarity of images,variation in pixel value distribution, and variation in objects.

Image similarity will now be described as an evaluation amount forevaluating balance within the layout page. Image similarity is thesimilarity of images within each layout page, calculated for each of thelayout pages of which a great number is generated. For example, if alayout based on a vacation theme is to be created, and images which arevery similar are arrayed in the layout, this may not be a very goodlayout in some cases. Accordingly, the similarity may be evaluated bydate/time of photography. Images with close date/time of photography arelikely to have been taken at close locations, while images with moreremoved date/time of photography are more likely to have been taken fordifference scenes. The date/time of photography may be acquired from theimage attribute information stored beforehand in the database module 202for each image, as illustrated in FIG. 9. Similarity is calculated fromthe date/time of photography as follows. Assumption will be made that atemporary layout, which is currently a temporary layout of interest, hasa layout of four images as illustrated in Table 4.

Date/time of photography information is attached to each imageidentified by image ID. Specifically, the year, month, date, and time(year YYYY, month MM, date DD, hour HH, minute MM, and second SS) isattached as date/time of photography. The amount of time between the twoimages out of these four images of which the date/time of photography isthe closest, i.e., the photography time interval is short, iscalculated.

TABLE 4 Image ID Date/time of photography (YYYYMMDD:HHMMSS) 2520100101:120000 86 20100101:150000 102 20100101:170000 10820100101:173000

In this case, the 30 minutes between the image IDs 102 and 108 is theshortest interval. This interval is taken as MinInterval, and stored inincrements of seconds. That is to say, 30 minutes is 1800 seconds. ThisMinInterval is calculated for each of the L temporary layouts, andstored in an array stMinInterval[1]. Next, the greatest valueMaxMinInterval in the stMinInterval[1] is obtained. Accordingly, asimilarity evaluation value Similarity[1] of the 1st temporary layoutcan be obtained as follows.Similarity[1]=100×stMinInterval[1]/MaxMinInterval

As can be seen here, the greater the smallest photography time intervalis, the closer Similarity[1] is to 100, and the smaller the photographytime interval is the closer Similarity[1] is to 0. Accordingly, this iseffective as an image similarity evaluation value.

Description will be made regarding variation in pixel valuedistribution, as an evaluation amount for evaluating balance within thelayout page. Variation in shade of color will be described here as anexample of variation in pixel value distribution. For example, if alayout based on a vacation theme is to be created, and images which arevery similar in color (e.g., blue sky, green mountains, etc.) arearrayed in the layout, this may not be a very good layout in some cases.Accordingly, in this case, layouts with greater variation in color areevaluated highly. Variance of average hue AveH of the images in the 1sttemporary layout, which is currently the temporary layout of interest,is calculated, and stored as color shade variation tmpColorVariance[1].Next, the greatest value MaxColorVariance in the tmpColorVariance[1] isobtained. Accordingly, a color shade variation evaluation valueColorVariance[1] of the 1st temporary layout can be obtained as follows.ColorVariance[1]=100×tmpColorVariance[1]/MaxColorVariance

As can be seen here, the greater the variation in average hue of theimages placed in the page is, the closer ColorVariance[1] is to 100, andthe smaller the variation in average hue is, the closer ColorVariance[1]is to 0. Accordingly, this is effective as a color shade variationevaluation value. Note however, that variation in pixel valuedistribution is not restricted to the above-described example.

Description will be made regarding variation in objects, as anevaluation amount for evaluating balance within the layout page.Variation in size of faces will be described here as an example ofvariation in objects. For example, if a layout based on a vacation themeis to be created, and images with faces which are very similar in sizeare arrayed in the layout, this may not be a very good layout in somecases. A good layout might be images with large faces and small faceslaid out in a well-balanced manner. Accordingly, in this case, layoutswith greater variation in face size are evaluated highly. A variancevalue of face size (distance along diagonal line from upper left tolower right of face) after placement in the 1st temporary layout, whichis currently the temporary layout of interest, is calculated, and storedas tmpFaceVariance[1]. Next, the greatest value MaxFaceVariance in thetmpFaceVariance[1] is obtained. Accordingly, a face size variationevaluation value FaceVariance[1] of the 1st temporary layout can beobtained as follows.FaceVariance[1]=100×tmpFaceVariance[1]/MaxFaceVariance

As can be seen here, the greater the variation in the size of facesplaced in the page is, the closer FaceVariance[1] is to 100, and thesmaller the variation in the size of faces is, the closerFaceVariance[1] is to 0. Accordingly, this is effective as a face sizevariation evaluation value. Note however, that variation in objects isnot restricted to the above-described example.

Another category which can be considered here is user preferenceevaluation. User preference evaluation deals with the fact that even ifa layout has low evaluation values as determined by the above-describedvarious types of evaluation amounts, a layout which includes photographswhich the user personally likes may be a good layout for that user, insome cases. Accordingly, evaluation using evaluation amounts based onuser preferences is preferably performed, so as to avoid inhibitingselection of such layouts. The user can set ratings for each of theimages beforehand, and accordingly preferences can be evaluatedbeforehand. Preferences can also be automatically evaluated based onnumber of times viewed, amount of time viewed, and so forth, forexample. Information used for such evaluations can be calculated basedon information managed in a FavoriteRate tag, ViewingTimes tag, andPrintingTimes tag.

Average values FavorteRateAve[1], ViewingTimesAve[1], andPrintingTimesAve[1], obtained from each of the values of tag informationof the images placed in each slot, are calculated for the 1st temporarylayout. Summation thereof enables the user preference evaluation valueUserFavor[1] to be obtained as follows.UserFavor[1]=FavorteRateAve[1]+ViewingTimesAve[1]+PrintingTimesAve[1]

The higher the user has rated, the more times viewed, and the more timesprinted, the images used in the layout, the higher the UserFavor[1]value is. Accordingly, determination can be made in the presentembodiment that the higher the UserFavor[1] value is, the closer thelayout is to what the user prefers.

Each of the multiple evaluation values calculated for each temporarylayout as described above, are integrated as described below, to yield alayout evaluation value for each temporary layout. EvalLayout[1]represents the integrated evaluation value of the 1st temporary layout,and EvalValue[n] represents the value of the N evaluation valuescalculated above (including each of the evaluation values in Table 3).The integrated evaluation value can be obtained as follows.

$\begin{matrix}{{{EvalLayout}\lbrack l\rbrack} = {\sum\limits_{n = 0}^{N}\;{{{EvalValue}\lbrack n\rbrack} \times {W\lbrack n\rbrack}}}} & (2)\end{matrix}$

In the above expression, W[n] is weighting of each evaluation value ofeach scene in Table 3. A different weighting is set for each layouttheme. For example, comparing the themes growth record “growth” andvacation “travel” in Table 3, it is often preferable for a vacationtheme to have as many good-quality photographs from as many differencescenes laid out. Accordingly, the weighting is set with emphasis onindividual evaluation values of images, and balance evaluation valuewithin the page. On the other hand, in the case of growth record“growth”, it is often preferable for the main character to match eachslot, since it is the growth record of this main character that is ofinterest. Accordingly, the weighting is set with emphasis on evaluationof match between images and slots, rather than balance in the page orindividual evaluation values of images. Note that the importance levelfor each theme has been set as shown in Table 3 in the presentembodiment.

The EvalLayout[1] calculated in this way is used in S2109 to generate alayout list LayoutList[k] for layout result display. The method forcreating the layout list LayoutList[k] will be described in detaillater. This layout list LayoutList[k] is used to correlate a k'th layoutorder in the rendering display in S603 illustrated in FIG. 6, as to alayout order 1 regarding which evaluation has ended. The content of thelayout list LayoutList[k] is the value of the layout order value 1.Display is performed in order from those with a small k in the layoutlist LayoutList[k].

Returning to FIG. 6, the layout results obtained by the above-describedprocessing are rendered in S603 in FIG. 6 and are displayed asillustrated in FIG. 21. In S603, a layout identifier stored inLayoutList[0] is first read out, and the temporary layout resultcorresponding to the identifier is read out from the secondary storagedevice 103 or RAM 102. Template information, and image names assigned tothe slots in the template, are set in the layout result as describedabove. Accordingly, the layout result is rendered using a drawingfunction of the operating system (OS) operating on the image processingapparatus 115, based on this information, and displayed as indicated byreference numeral 2902 in FIG. 21.

In FIG. 21, pressing a Next button 2904 causes the layout identifierstored in LayoutList[1], which has the next highest score, to be readout, rendered in the same way as described above, and then displayed.Thus, the user can view proposed layouts of many variations. Pressing aPrevious button 2903 displays layouts displayed earlier. Further, if theuser likes a displayed layout, the layout result 2902 can be printedfrom the printer 112 connected to the image processing apparatus 115, bythe user pressing a print button 2905.

Now, the suitability as to printing size at the time of performingqualitative evaluation of the great number (L) of layouts in S2108 inFIG. 17 will be described.

Description of suitability as to printing size will be described withregard to a case of placing a group photograph (image), in which thereare ten people, for example, in a slot around ¼ the size of the layout.In a case of printing on an A6-size printing medium, the printing sizeof the image will be ¼ the size of the A6 sheet, so the persons in theprinted image will be so small that the user will have difficult indistinguishing facial expressions of the subjects. On the other hand, ina case of printing on an A3-size printing medium, the printing size ofthe image will be equivalent to an A5-size sheet, so the user will haveno difficult in distinguishing facial expressions of the subjects asthey are sufficiently large.

Also, description of suitability as to printing size will be describedwith regard to a case of placing a photograph (image), which is afull-image shot of the face of one person, in a slot around ¼ the sizeof the layout. In a case of printing on an A6-size printing medium, theprinting size of the image is ¼ the size of the A6 sheet which is small,but the face is large as to the slot, so the user will have no difficultin distinguishing facial expressions. On the other hand, in a case ofprinting on an A3-size printing medium, the printing size of the imageis equivalent to an A5-size sheet, so the face is so large that it isexcessively conspicuous. In the case of the former, which is the casewhere there is a great number of persons in the image, the fact that theprint size is too small as to the information amount of the subjectsdecided by the face size and number of faces affects the situation. Inthe case of the latter, which is the case where there is a small numberof persons in the image (e.g., one), the fact that the print size is toolarge as to the information amount of the subject decided by the facesize and number of faces affects the situation. An example will beillustrated regarding scoring information amount of subjects using theface size and number of faces (scoring suitability as to printing size),to decide an optimal layout as to the printing size in the presentembodiment.

While the method to identify the face size and number of faces is notrestricted in particular, in the present embodiment the face positioninformation detected in the sensing in S303 is used. In S303, faceposition information as to the images in the image group is registeredin the database module 202 beforehand, having been calculated in thebackground. The face position information is not calculated each timelayout evaluation is performed; rather, face position informationregistered (saved) in the database module 202 is used for the sake ofcalculation efficiency.

Now, calculation processing of evaluation values of each image, based onthe face size and number of faces, will be described with reference toFIG. 25. FIG. 25 illustrates a flow of evaluation value calculationprocessing of each image based on the face size and number of faces, andis executed by the CPU 100. An example will be described here regardinga case of using paper as the printing medium. The layout to be presentedto the user is decided based on the evaluation results obtained by thiscalculation processing.

Determination is made in S2201 regarding whether or not a face isincluded in the image, based on face position information. In a casewhere one or more faces are included, determination is made that thesubject of the image is a person.

The face region percentage in an image regarding which determination hasbeen made that the subject is a person is calculated in S2202 based onthe face size and number of faces. In the first embodiment, first, thetotal value of all face regions included in the image is calculatedbased on the face position information detected in S303. Specifically, npersons worth of face position information is used to add the size ofthe n persons worth of face regions, thereby calculating the total sizeof all face regions in the single image. The total size of the faceregion thus obtained is divided by the entire image size, therebycalculating a face region percentage which is a ratio of faces occupyingthe image. The size is obtained in terms of pixels in the presentembodiment.

Now, a face region percentage of the group photograph including tenpersons in an image A (face region percentage a of image A), and a faceregion percentage of the single shot photograph including the face ofone person in an image B (face region percentage b of image B), forexample, are calculated.

In a case where part of the original image is to be trimmed and used, inS2202 the face region percentage in the trimmed image is calculated. Theface region percentage calculated from the face region size and numberof faces will also be referred to as “subject feature” hereinafter.

Note that the method for calculating the face region percentage is notrestricted to the above-described, and any method may be used as long asthe face region percentage in each image can be obtained.

In S2203, the output size of the image (the print size of the image inthe present embodiment) is identified.

First, a slot size in a layout image for placement of the images (alayout template in the present embodiment) is identified. In a casewhere the slot information is described in the layout template forexample, the slot size can be calculated from this information. In thiscase, an image is placed in a slot around ¼ the layout size, forexample.

The print size of the images (print size of image A, print size of imageB) are obtained. In a case where the sheet size of the layout image(layout template) is already decided, such as in a case where the userhas specified the sheet size for printing beforehand, the image printsize can be calculated from the sheet size and slot size. In this case,the print size is print size c in a case of printing the layout image onan A6-size sheet, and is print size d in a case of printing the layoutimage on an A3-size sheet, for example.

The print size of the face region is then calculated in S2204. The printsize of the face region in a case of printing the layout image can beobtained by multiplying the face region percentage by the print size.The print size of the face region in a case of printing the image A onan A6-size sheet is a times c, and the print size of the face region ina case of printing the image B on an A6-size sheet is b times c. Theprint size of the face region in a case of printing the image A on anA3-size sheet is a times d, and the print size of the face region in acase of printing the image B on an A3-size sheet is b times d.

In S2205, an evaluation amount (Face Evaluation Value) is calculatedfrom the face size and number of faces, and face print size (Face Size).

The print size of the face region is considered to be undesirable if toosmall or too large in the present embodiment. Specifically, theevaluation value is lowered in a case where the face print size is toosmall, and the evaluation value is also lowered in a case where the faceprint size is too large. The suitability of the print size can becalculated from the following Expressions. Specifically, a threshold eand threshold f are set, and the evaluation amount is 100 as long as theface region print size is between these two. If the face region printsize is equal to or smaller than the threshold value e, the evaluationvalue is gradually lowered, and if the face region print size is equalto or greater than the threshold value f, the evaluation value isgradually lowered.Face Evaluation Value=100*Face Size/e(case where Face Size≦e)Face Evaluation Value=100(case where e<Face Size<f)Face Evaluation Value=100*(1−(Face Size−f)/(Max Size−f))(case where Face Size>f)

The suitability as to the print size calculated by the above method isnormalized so as to be in the form of a score. Thus, the strength ofimpact which the evaluation of each image has on the evaluation oflayout candidates is changed depending on the subject size in each imageaccording to the print size. Note that in a case of integrating thesuitability regarding print size and other evaluation amounts at thetime of evaluating individual images, the suitability regarding printsize may be multiplied by a weighting coefficient according to theme andthen added. The layout is evaluated in the present embodiment from aperspective of observing the layout image as a printed product.Specifically, the image size is converted to a size when printed onpaper of a specified sheet size.

Thus, better evaluation of layout candidates according to the print sizecan be performed by evaluating the suitability as to the print size, asanother layout evaluation. Accordingly, a suitable layout according tothe print size can be provided when proposing layout images (layoutcandidates) to the user in order of evaluation rank.

In S604, determination is made regarding whether or not to displayanother version. In a case of displaying another version (Yes in S604),the flow returns to S602 and continues, and in a case of not displayinganother version (No in S604), the flow ends. Whether or not to displayanother version is determined according to whether there has been aninstruction to that effect, such as the user pressing a button (the Nextbutton for example) to display another version, for example.

The suitability as to print size according to the present embodimentyields different results depending on the size of the image whenprinted, and the face region size in the image. For example, theevaluation amount will differ depending on whether the number of facesis one or ten, even if the face region is the same size.

Accordingly, images to be laid out on the printing medium can beappropriately evaluated, even if conditions on the monitor to confirmthe layout image are the same, for example.

Second Embodiment

While description has been made in the first embodiment where the facesize and number of faces are subject features, and individual evaluationof images is performed accordingly, in a second embodiment evaluation isperformed based on other information amount which images have.Configurations which are the same as those in the first embodiment willbe omitted from description.

Taking note of information amount which an image has, there are imagesin an image group which have a much information amount and image whichhave little information amount. Placing an image with much informationamount in a small-sized slot may result in the user feeing that theinformation cannot be sufficiently obtained. On the other hand, placingan image with little information amount in a large-sized slot may resultin the user feeling that information is insufficient. This is furtheraccentuated by the sheet size. For example, placing an image with muchinformation amount in a slot having a small-sized print size tends toresult in the user feeing that the information cannot be sufficientlyobtained even more readily, and placing an image with little informationamount in a slot having a large-sized print size tends to result in theuser feeling that information is insufficient even more readily.

Optimal placement in the present embodiment is performed according toperson information amount of images in the layout image. Whiledescription has been made in the first embodiment that the size andnumber of faces of persons in the image are used, description will bemade here regarding features of other subjects which affect theinformation amount of subjects. First, description will be maderegarding a case where the main object in the image is a person, as anexample of subject features which affect the information amount ofsubjects.

In a case where the main object in the image is persons, the face sizeof the persons, the number of faces of the persons, the direction of thefaces, the degree of backlight of the faces, body parts of the personsother than the faces, and so forth affect information amount, so theseare defined as features of the subject. The evaluation amount based onthe features is set to be great if the information amount is great, andthe evaluation amount is set to be small if the information amount issmall.

An example of subject features and the magnitude of effect ofinformation amount is illustrated in Table 5.

TABLE 5 Example of Subject Features and the Magnitude of Effect ofInformation Amount Amount of Subject Items Conditions information PersonNumber of faces Many Large Direction of face Front Large Side MediumBack Small Degree of backlight Much backlight Small Little backlightLarge Body Only face Small Torso Medium Full-body Large

In a case where the number of faces is great, the information amount isgreat. If a face is facing directly forward, the information amount isgreat, if sideways the information amount is medium, and if backwardsthe information amount is small. Backlight tends to blot out faces inphotographs, and sufficient information amount cannot be obtained.Accordingly, the greater the amount of backlight at the face, thesmaller the information amount, and the smaller the amount of backlight,the greater the information amount. The greater the amount of body inthe photograph is, the more can be determined what that person is doingand what sort of state that person is in, is information amount isgreater. Accordingly, if only the face is in the photograph, theinformation amount is small, if the torso is in the photograph theinformation amount is medium, and if the full body is in the photographthe information amount is great.

Evaluation values are set for each such information amount. If the faceis facing directly forward, the information amount is greatest ascompared to other face directions, so the evaluation value in a casewhere the face is facing directly forward is 1, 0.5 if facing sideways,and 0.1 if facing backwards.

Evaluation values according to degree of backlight are set such thatcomplete backlight is 0.1 and no backlight is 1, for example. The degreeof backlight in the present embodiment is obtained in accordance to skincolor of the face, with continuous evaluation values between the twodegrees of backlight mentioned above. Evaluation values for degree ofbacklight are not restricted to this. For example, an arrangement may bemade where numerical information indicating degree of backlight isdivided into multiple ranges, with evaluation values being set to each.

Evaluation values according to body parts of a person in the image areset such that the evaluation value is 1 if only a face is in thephotograph, 1.5 if the torso is in the image, and 2 if the entire bodyis in the image. Continuous evaluation values are set between theabove-described body parts.

In the present embodiment, the evaluation amounts of all of theabove-described items are multiplied to obtain the information amount ofa person. If multiple persons are in the image, the evaluation amount ofeach person is added to yield the information amount of persons in thatimage.

Further, the face region percentage, slot size, print size of the slot,and print size of the face region, are calculated in the presentembodiment in the same way as with the first embodiment. Dividing theobtained person information amount by the print size of the face regionyields the person information amount per unit face region print size.

A person evaluation amount (Person Evaluation Value) of the image iscalculated based on the person information amount (Person InformationValue) per unit face region print size. The evaluation amount of animage containing suitable information amount as to the print size is setto 100, and the evaluation amount is reduced if the information amountas to the print size is too small or too great. For example, a thresholdg and threshold h are set, and the evaluation amount is 100 as long asthe calculated person evaluation amount of the image is between thesetwo. If the person evaluation amount is smaller than the threshold valueg, the evaluation value is gradually lowered in accordance with theperson evaluation amount, and if the person evaluation amount is greaterthan the threshold value h, the evaluation value is gradually lowered inaccordance with the person evaluation amount.

The suitability as to the print size calculated by the above method isnormalized so as to be in the form of a score. In a case of integratingthe suitability regarding print size and other evaluation amounts at thetime of evaluating individual images, the suitability regarding printsize may be multiplied by a weighting coefficient according to theme andthen added.

The layout is evaluated in the present embodiment from a perspective ofobserving the layout image as a printed product. Specifically, the imagesize is converted to a size when printed on paper of a specified sheetsize.

Thus, better evaluation of layout candidates according to the print sizecan be performed by evaluating the suitability as to the print size, asanother layout evaluation. Accordingly, a suitable layout according tothe print size can be provided when proposing layout images (layoutcandidates) to the user in order of evaluation rank.

The suitability as to print size according to the present embodimentyields different results depending on the size of the image whenprinted, and the face region size in the image. Accordingly, thelikelihood that an image with a great person information amount will beplaced in a small slot and output with a small print size can be reducedor avoided. Also, the likelihood that an image with a small personinformation amount will be placed in a great slot and output with agreat print size can be reduced or avoided.

While description has been made in the present embodiment that theevaluation values of all items are multiplied to yield personinformation amount, an arrangement may be made where only part of theitems are used to yield person information amount.

Third Embodiment

While description has been made in the first and second embodimentsregarding individual evaluation of images in a case where the subject isa person, in a third embodiment description will be made regardingindividual evaluation of images in a case where the subject is otherthan a person. Configurations which are the same as those in the firstembodiment will be omitted from description.

Examples of a subject other than a person include scenery and text.Description will be made regarding the features of the subjects ofscenery and text, and information amount thereof, using Table 6. Table 6illustrates an example of the features of subjects, and magnitude ofinformation amount.

TABLE 6 Amount of Subject Items Conditions information Scenery Number oflandmarks Many Large Spatial frequency High Large Low Small Colordistribution Broad Large Narrow Small Text Number Much Large LanguageJapanese Large English Small Proper nouns Included Large

In a case where the subject in the image is scenery, an example of afeature of the subject which affects the information amount is thenumber of landmarks included in the image. The more landmarks there arein the image, the greater the information amount of the image is. Thenumber of landmarks included in each image can be estimated byidentifying the location of photography, direction of shooting, andfocal length at the time of shooting, using GPS function, gyro sensors,and so forth included in a smartphone or digital camera, and referencinga map database. Note however, that the method to obtain the number oflandmarks is not restricted to this.

Also, in a case where the subject in the image is scenery, an example ofa feature other than subjects which affects the information amount isthe spatial frequency of the image. The spatial frequency of the imageis also correlated with the information amount. A blue sky has littleinformation amount, while a town shot has a great amount of information.Images of the blue sky have low spatial frequency, while town shots havehigh spatial frequency. That is to say, the higher the spatial frequencyis, the greater the information amount can be said to be.

Further, in a case where the subject in the image is scenery, an exampleof a feature other than subjects which affects the information amount isthe color distribution. The color distribution of the image is alsocorrelated with the information amount. Images including varioussubjects have variation in color, and have a wide color distribution,while an image including only a single subjected is biased in colordistribution, and the color distribution is narrow. That is to say, thewider the color distribution is, the greater the information amount canbe said to be.

Also, in a case where the image is text, an example of a feature ofsubjects which affects the information amount is the number of letters.Text information is often important information for the user. Forexample, text on a sign in an image taken while on vacation or an event,a description at a sightseeing stop, and so forth, may have beenphotograph to record the text information, which will be importantinformation for the user. Accordingly, in the present embodiment thegreater the number of letters is, the greater the information amount is.

Also, in a case where the image is text, an example of a feature ofsubjects which affects the information amount is the type of language ofthe text. Comparing Japanese and English, one letter in Japanese carriesmore information amount that one letter in English, so in the presentembodiment, the information amount of Japanese per letter is great andthe information amount of English per letter is small. While Japaneseand English have been exemplified here, information amount may beappropriately set for other languages as well.

Also, in a case where the image is text, an example of a feature ofsubjects which affects the information amount is whether the text is aproper noun. Proper nouns are often important information for the user,such as the name of a sightseeing spot, so in the present embodiment,information amount is great if a proper noun is included.

Evaluation values according to information amount are set for each ofthe features of subjects as described above. The features of subjectsare obtained for each image, based on the evaluation amounts of eachitem, and divided by the print size of the image, thereby yieldingsubject information amount per unit print size. This subject informationamount can be used to decide evaluation amounts for each of the images,by the same method used in the first and second embodiments.

Now, a calculation method according to the present embodiment regardingfeatures of subjects in images will be described. First, face regionsand text regions are detected in an image. Persons serving as subjectscan be detected by the face region detection in the sensing in S303,described in the first embodiment. Detection of text (text region) canbe detected using known techniques.

Face region position information is added to detected face regions, textregion position information is added to detected text region, andscenery region position information is added to other regions.

Evaluation values of the images are calculated. A calculation method ofevaluation values in an image, in a case where multiple features ofsubjects affecting the information amount coexist in an image, will bedescribed using Table 6. FIG. 26 illustrates a flow of calculationprocessing of evaluation values in each image, and is executed by theCPU 100.

Determination is made in S2501 regarding whether or not there are anyface regions included in the image. Determination is made that a faceregion is included in the present embodiment in a case where face regionposition information has been added.

In a case where one or more face regions are included in the image (Yesin S2501), an evaluation value “a” is calculated in S2202, based onsubject features in a case where the subject is a person. This featureamount “a” can be calculated by the method described in the first andsecond embodiments. The flow then advances to S2503. On the other hand,if no face region is included in the image (No in S2501), the flowadvances to S2503.

Determination is made in S2503 regarding whether or not there are anytext regions included in the image. Determination is made that a textregion is included in the present embodiment in a case where text regionposition information has been added.

In a case where one or more text regions are included in the image (Yesin S2503), an evaluation amount “b” is calculated in S2504 based onsubject features in a case where the subject is text. The flow thenadvances to S2505. On the other hand, if no text region is included inthe image (No in S2503), the flow advances to S2505.

Determination is made in S2505 regarding whether or not there are anyscenery regions included in the image. Determination is made that ascenery region is included in the present embodiment in a case wherescenery region position information has been added.

In a case where one or more scenery regions are included (Yes in S2505),an evaluation amount “c” is calculated in S2506 based on subjectfeatures in a case where the subject is scenery. The flow then advancesto S2507. On the other hand, if no scenery region is included in theimage (No in S2505), the flow advances to S2507.

In S2507, the calculated evaluation values a, b, and c are totaled, andan evaluation value of the image is obtained. Note that weighting may bechanged depending on theme when adding. For example, when the theme ispersons, the evaluation amount of persons may be weighted more. On theother hand, when the theme is a vacation, evaluation is performed basednot only on the evaluation amount of information amount of persons, butalso based on the evaluation amount of information amount of scenery andtext.

The suitability as to the print size calculated by the above method isnormalized so as to be in the form of a score. In a case of integratingthe suitability regarding print size and other evaluation amounts at thetime of evaluating individual images, the suitability regarding printsize may be multiplied by a weighting coefficient according to theme andthen added.

The layout is evaluated in the present embodiment from a perspective ofobserving the layout image as a printed product. Specifically, the imagesize is converted to a size when printed on paper of a specified sheetsize.

Thus, better evaluation of layout candidates according to the print sizecan be performed by evaluating the suitability as to the print size, asanother layout evaluation. Accordingly, a suitable layout according tothe print size can be provided when proposing layout images (layoutcandidates) to the user in order of evaluation rank.

While description has been made by way of FIG. 26 with evaluation valuesbeing calculated in the order of whether or not there are face regions,whether or not there are text regions, and whether or not there arescenery regions, calculation of the evaluation values of the image isnot restricted to this order.

Other Embodiments

The basic configuration of the present disclosure is not restricted tothe above-described configurations. The above-described embodiments areexemplary arrangements to realize the advantages of the presentdisclosure, and if using similar but different techniques or differentparameters obtains advantages equivalent to those of the presentdisclosure, these are also included in the scope of the presentdisclosure.

The above-described third embodiment describes obtaining evaluationvalues of each image by calculating evaluation values for features ofeach of persons, scenery, and text as a subject, but is not restrictedthusly. For example, an arrangement may be made where determination ismade beforehand regarding what the subject in the image is, andevaluation value is obtained for each image from features relating tothat subject alone. This can reduce the amount of time for calculatingevaluation values of the images.

Now, determination of a subject in an image will be described in brief.Position information of face regions, text regions, and scenery regionsincluded in the image can be used to determine the subject of the image,for example. In a case where one or more face regions are in the image,for example, determination is made that the subject is persons. However,if one or more face regions exist in the image but the person region isequal to or smaller than a certain size determined beforehand, thesubject is determined to be persons and scenery. If a text region is inthe image and the text region is equal to or greater than a certain sizeset beforehand, text is added to the subject. That is to say, in thiscase, the subject may be any one of text alone, person and text, andperson and scenery and text. If no face region is included, and not textregion is included or an included text region is smaller than thecertain size, the subject is determined to be scenery.

While description has been made in the above-described embodiments thatprint size and evaluation amount based on features of subjects in theimage are used for quantitative evaluation of the great number oflayouts in S1508, the present disclosure is not restricted thusly. Forexample, evaluation amount based on print size and features of subjectsin the image may be used in S1507. Specifically, an arrangement may bemade where, at the time of generating the great number of temporarylayouts in S1507, combinations of slots and images where the evaluationamount based on the print size and features of subjects in the imageyield values at or below a value set beforehand are not used to createlayouts. Thus, temporary layouts of which the evaluation value willclearly be low are not created, so processing time can be reduced.

While description has been made in the above embodiments that a greatnumber of layouts is generated in S1508 as intermediate layouts, a greatnumber of layouts does not necessarily have to be created. For example,in a case of selecting a small number of images which the user wants touser with a template, an optimal layout can be created by the followingmethod.

First, the user selects a layout template and output sheet size.Assumption will be made here that conditions of images suited for eachslot are described in the layout template, in the same way as with thefirst embodiment. Next, an image group which the user wants to use withthe layout is selected. The number of images selected here may begreater than the number of slots. Next, analysis of each image isperformed, and information necessary for determining whether the imagessatisfy conditions of the slots is acquired. An arrangement may be madehere where if analysis results indicate that the image clearly is adefective image or the like, that image is deleted from the image group.Images are then selected which match the conditions described for eachslot, based on the analysis information. If there are multiple imagessatisfying image conditions suitable for a slot, a good image may bedecided using the print size and features of the subject described inthe embodiments above. The evaluation values described in the first andsecond embodiments are calculated using the print size and features ofthe subject in a case of the images being placed in the slots, andimages with high evaluation values are taken as final selection images.Thus, a layout can be generated by placing images, satisfying conditionsof images suitable for the slots, in the layout image, and printed on asheet size specified beforehand.

While an example has been described in the above embodiments regarding acase of printing the created layout, the output method is not restrictedto printing. For example, a display made on a display apparatus such asa monitor or the like may be the final product. In a case of asmartphone, the size of the final product will be around 4 inches, and afinal product displayed on a tablet display with be 7 to 10 inches. Afinal product displayed on a laptop PC monitor with be 10 to 15 inches,and a final product displayed on a PC monitor with be 20 inches orgreater. In these cases, evaluation may be performed based on displaysize as the output size, instead of recording medium size when printing.

Also, while persons have been exemplified as objects in theabove-described embodiments, objects are not restricted to persons. Forexample, recognition processing may be performed on pets such as dogs orcats to recognize these, and accordingly pets may be set as objects.Also, buildings, small items, and so forth can be recognized by shaperecognition processing through edge detection and so forth, sobuildings, small items, and so forth can be set as objects.

While a computer has been exemplified as the image processing apparatusin the above-described embodiments, this is not restrictive. The presentdisclosure is applicable to apparatuses which perform image processing,such as printers, copying machines, facsimile apparatuses, cellularphones, personal digital assistants (PDAs), image viewers, digitalcameras, and so forth, for example.

The present disclosure maybe applied to a system configured includingmultiple apparatuses (e.g., a host computer, interface equipment,reader, printer, etc.), or may be applied to a standalone apparatus(e.g., printer, copying machine, facsimile apparatus, etc.).

The material of the printing medium is not restricted to paper, andanything printable by being provided with recording material may beemployed. This recording material is not restricted to liquid ink;rather various types of recording material may be employed.

The above-described embodiments may also be realized by executing thefollowing processing. That is to say, software (program) realizing thefunctions of the above-described embodiments are supplied to a system orapparatus via a network or various types of storage mediums, and acomputer (CPU or microprocessor unit (MPU)) of the system or apparatusreads out and executes the program. The program may be executed on asingle computer, or multiple computers may be operated collaborativelyto execute the program. There is no need to realize all of theabove-described processing by software, and part or all of theprocessing may be realized by hardware such as application specificintegrated circuits (ASIC) or the like. The CPU is not restricted to oneCPU executing all processing; rather, multiple CPUs may collaborativelyexecute the processing.

According to the above-described embodiments, a suitable layoutaccording to output size can be obtained by evaluating layout candidatesin accordance with the size of subjects in the images, identified by thesize of layout candidates to be output.

Embodiment(s) of the present disclosure can also be realized by acomputer of a system or apparatus that reads out and executes computerexecutable instructions (e.g., one or more programs) recorded on astorage medium (which may also be referred to more fully as a‘non-transitory computer-readable storage medium’) to perform thefunctions of one or more of the above-described embodiment(s) and/orthat includes one or more circuits (e.g., application specificintegrated circuit (ASIC)) for performing the functions of one or moreof the above-described embodiment(s), and by a method performed by thecomputer of the system or apparatus by, for example, reading out andexecuting the computer executable instructions from the storage mediumto perform the functions of one or more of the above-describedembodiment(s) and/or controlling the one or more circuits to perform thefunctions of one or more of the above-described embodiment(s). Thecomputer may comprise one or more processors (e.g., central processingunit (CPU), micro processing unit (MPU)) and may include a network ofseparate computers or separate processors to read out and execute thecomputer executable instructions. The computer executable instructionsmay be provided to the computer, for example, from a network or thestorage medium. The storage medium may include, for example, one or moreof a hard disk, a random-access memory (RAM), a read only memory (ROM),a storage of distributed computing systems, an optical disk (such as acompact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™),a flash memory device, a memory card, and the like.

While the present disclosure has been described with reference toexemplary embodiments, it is to be understood that the disclosure is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of priority from Japanese PatentApplication No. 2013-184046, filed Sep. 5, 2013, which is herebyincorporated by reference herein in its entirety.

What is claimed is:
 1. An apparatus comprising: at least one processor;and at least one memory storing instructions which, when executed by theat least one processor, cause the apparatus to perform: acquiring atleast one image group including at least one image; creating a layoutcandidate by laying out images included in an image group that has beenacquired by the acquiring; evaluating the layout candidate created bythe creating, based on individual evaluation of each of the images laidout in layouts, by analyzing image data of the images without displayingof the images; displaying at least one layout candidate on a displayscreen after the evaluating, wherein the at least one layout candidateis selected from a plurality of layout candidates created by thecreating, based on evaluation results from the evaluating; causing aprinter to print the at least one layout candidate displayed on thedisplay screen, in accordance with an operation by a user; andspecifying a print size of the layout candidate created by the creating,wherein the individual evaluation includes a first evaluation which isbased on a print size of a face region in the layout candidate, in acase where the layout candidate is printed by the printer in thespecified print size, wherein the evaluating changes an evaluation valueof the first evaluation in accordance with the print size of the layoutcandidate, wherein the first evaluation is based on the print size ofthe layout candidate and an information amount of a person in an imagelaid out in layouts, and wherein in a case where an information amountof a person in an image is equal to or larger than a predeterminedthreshold value, an evaluation value of the first evaluation is a firstevaluation value, and in a case where an information amount of a personof an image is smaller than the predetermined threshold value, anevaluation value of the first evaluation is a second evaluation valuesmaller than the first evaluation value.
 2. The apparatus according toclaim 1, wherein the information amount includes at least one of aninformation amount of a face size, a number of faces, a direction of aface, a degree of backlight, and a size of a part of a person other thana face.
 3. The apparatus according to claim 1, wherein the instructions,when executed by the at least one processor, further cause the apparatusto perform: identifying whether at least one of a person, scenery, andtext is included as a subject in each image to be laid out in layouts.4. The apparatus according to claim 1, wherein the displaying displayslayout candidates of which evaluation by the evaluating is high.
 5. Theapparatus according to claim 1, wherein the print size of the layoutcandidate is based on a size of a printing medium upon which the layoutcandidate is to be printed.
 6. The apparatus according to claim 1,wherein the print size of the face region is specified based on theprint size of the layout candidate and a ratio of one or more facesoccupying an image that have been laid out in layouts.
 7. The apparatusaccording to claim 6, wherein the ratio of faces is specified based on anumber of faces and each face size in the image that have been laid outin layouts.
 8. The apparatus according to claim 1, wherein in a casewhere the print size of the face region is not within a predeterminedrange, the evaluation value of the first evaluation is lowered than thatin a case where the print size is within the predetermined range.
 9. Theapparatus according to claim 1, wherein the individual evaluation ofeach image includes a second evaluation based on an information amountof a subject other than a person, and the evaluating changes anevaluation value of the second evaluation in accordance with theinformation amount of the subject other than a person.
 10. The apparatusaccording to claim 1, wherein the first evaluation is based on a valueobtained by dividing the person information amount by the print size ofthe face region.
 11. The apparatus according to claim 1, wherein in acase where the information amount is equal to or smaller than anotherthreshold value larger than the predetermined threshold value, anevaluation value of the first evaluation is the first evaluation value,and in a case where the information amount is larger than the anotherthreshold value, an evaluation value of the first evaluation is a thirdevaluation value smaller than the first evaluation value.
 12. A methodfor an apparatus comprising at least one processor coupled to at leastone memory, the method comprising: acquiring at least one image groupincluding at least one image; creating a layout candidate by laying outimages included in an image group that has been acquired in theacquiring; evaluating the layout candidate created by the creating,based on individual evaluation of each of the images laid out inlayouts, by analyzing image data of the images without displaying of theimages; displaying at least one layout candidate on a display screenafter the evaluating, wherein the at least one layout candidate isselected from a plurality of layout candidates created by the creating,based on evaluation results from the evaluating; causing a printer toprint the at least one layout candidate displayed on the display screen,in accordance with an operation by a user; and specifying a print sizeof the layout candidate created in the creating, wherein the individualevaluation includes a first evaluation which is based on a print size ofa face region in the layout candidate, in a case where the layoutcandidate is printed by the printer in the specified print size, whereinthe first evaluation is based on the print size of the layout candidateand an information amount of a person in an image laid out in layouts,and wherein in a case where an information amount of a person in animage is equal to or larger than a predetermined threshold value, anevaluation value of the first evaluation is a first evaluation value,and in a case where an information amount of a person of an image issmaller than the predetermined threshold value, an evaluation value ofthe first evaluation is a second evaluation value smaller than the firstevaluation value.
 13. A non-transitory storage medium, storing a programcausing a computer apparatus comprising to execute a method including:acquiring an image group including at least one image; creating a layoutcandidate by laying out images included in an image group that has beenacquired in the acquiring; evaluating the layout candidate created bythe creating, based on individual evaluation of each of the images laidout in layouts, by analyzing image data of the images without displayingof the images; displaying at least one layout candidate on a displayscreen after the evaluating, wherein the at least one layout candidateis selected from a plurality of layout candidates created by thecreating, based on evaluation results from the evaluating; causing aprinter to print the at least one layout candidate displayed on thedisplay screen, in accordance with an operation by a user; andspecifying a print size of the layout candidate created in the creating,wherein the individual evaluation includes a first evaluation which isbased on a print size of a face region in the layout candidate, in acase where the layout candidate is printed by the printer in thespecified print size, wherein the first evaluation is based on the printsize of the layout candidate and an information amount of a person in animage laid out in layouts, and wherein in a case where an informationamount of a person in an image is equal to or larger than apredetermined threshold value, an evaluation value of the firstevaluation is a first evaluation value, and in a case where aninformation amount of a person of an image is smaller than thepredetermined threshold value, an evaluation value of the firstevaluation is a second evaluation value smaller than the firstevaluation value.
 14. The storage medium according to claim 13, whereinthe print size of the layout candidate is based on a size of a printingmedium upon which the layout candidate is to be printed.
 15. The storagemedium according to claim 13, wherein the print size of the face regionis specified based on the print size of the layout candidate and a ratioof one or more faces occupying an image that have been laid out inlayouts.
 16. The storage medium according to claim 15, wherein the ratioof faces is specified based on a number of faces and each face size inthe image that have been laid out in layouts.
 17. The storage mediumaccording to claim 13, wherein in a case where the print size of theface region is not within a predetermined range, the evaluation value ofthe first evaluation is lowered than that in a case where the print sizeis within the predetermined range.
 18. The storage medium according toclaim 13, wherein the individual evaluation of each image includes asecond evaluation based on an information amount of a subject other thana person, and an evaluation value of the second evaluation is changed inthe evaluating in accordance with the information amount of the subjectother than a person.
 19. The storage medium according to claim 13,wherein the first evaluation is based on a value obtained by dividingthe person information amount by the print size of the face region. 20.The storage medium according to claim 13, wherein in a case where theinformation amount is equal to or smaller than another threshold valuelarger than the predetermined threshold value, an evaluation value ofthe first evaluation is the first evaluation value, and in a case wherethe information amount is larger than the another threshold value, anevaluation value of the first evaluation is a third evaluation valuesmaller than the first evaluation value.